package com.silvtar.sync.ui;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JButton;

public class ScanPanel extends JPanel {
    private JTable table;

    /**
     * Create the panel.
     */
    public ScanPanel() {
        setPreferredSize(new Dimension(300, 300));
        setLayout(new BorderLayout(0, 0));

        JScrollPane scrollPane = new JScrollPane();
        add(scrollPane, BorderLayout.CENTER);

        table = new JTable();
        scrollPane.setViewportView(table);

        JPanel panel = new JPanel();
        add(panel, BorderLayout.SOUTH);

        JButton button = new JButton("开始扫描");
        panel.add(button);

        JButton button_1 = new JButton("停止");
        panel.add(button_1);

    }

}
